<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html >
<html>
	<head>
		<meta charset="UTF-8">
		<title>员工管理</title>
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/main.css">
	</head>

	<body>
		<div>
			<div id="head">
				<marquee>你想一夜暴富吗？你想一夜成名吗？别做梦了，好好编程吧!!!</marquee>
				<table border="1" width="100%" cellspacing="0">
					<tr>
						<th><img alt="" src="${pageContext.request.contextPath}/img/one/1.jpg"></th>
						<th><img alt="" src="${pageContext.request.contextPath}/img/one/2.jpg"></th>
						<th><img alt="" src="${pageContext.request.contextPath}/img/one/3.jpg"></th>
						<th><img alt="" src="${pageContext.request.contextPath}/img/one/4.jpg"></th>
						<th><img alt="" src="${pageContext.request.contextPath}/img/one/5.jpg"><br />
							<c:if test="${LOGIN_NAME != null}">
								欢迎${LOGIN_NAME}登录&emsp;
								<a href="${pageContext.request.contextPath}/user/logout">注销登录</a>
							</c:if>
						</th>
					</tr>
				</table>
			</div>
			<div class="clfloat" id="left">
				<a href="index">
					<div class="active">员工管理</div>
				</a>
				<a href="${pageContext.request.contextPath}/dept/index">
					<div>部门管理</div>
				</a>
				<a href="#">
					<div>扩展功能</div>
				</a>
			</div>
			<div class="clfloat" id="right">
				<div id="nav">
					首页>>>>员工管理
				</div>
				<span>
						<form action="emp/search" method="post">
							<input type="text" name="search" placeholder="按id或姓名搜索">
							<input type="submit" value="搜索">
						</form>
					</span>
				<table border="1" width="100%" cellspacing="0">
					<tr>
						<th>编号</th>
						<th>姓名</th>
						<th>性别</th>
						<th>年龄</th>
						<th>住址</th>
						<th>电话</th>
						<th>银行卡号</th>
						<th>操作</th>
					</tr>
					<c:forEach items="${EMP_LIST}" var="list" varStatus="index">
						<tr>
							<td>${list.id}</td>
							<td>${list.name}</td>
							<c:if test="${list.sex}">
								<td>男</td>
							</c:if>
							<c:if test="${!list.sex}">
								<td>女</td>
							</c:if>
							<td>${list.age}</td>
							<td>${list.address}</td>
							<td>${list.tel}</td>
							<td>${list.card}</td>
							<td>
								<a href="${pageContext.request.contextPath}/emp_add.jsp">新增</a>&emsp;|&emsp;
								<a href="emp/edit?id=${list.id}">编辑</a>&emsp;|&emsp;
								<a href="emp/delete?id=${list.id}">删除</a>
							</td>
						</tr>
					</c:forEach>
				</table>
			</div>
		</div>
	</body>
</html>